#ifndef _UART_H_
#define _UART_H_

#include "stm8s103k.h"
#include "stm8s_bit.h"

extern unsigned char rx_data[128];
extern unsigned char rx_finished;
extern unsigned char rx_cnt;

void UART_GPIO_Config(void);
void UART_Config(void);
void UART_Sendchar(unsigned char data);
void UART_SendHex(unsigned char data);
void UART_Sendstr(unsigned char *str);
void Delay(unsigned int time);
#endif
